﻿@model lottery.entity.User
@{
    ViewData["Title"] = "Create";
}
<h2>Create</h2>
<h4>@nameof(lottery.entity.User)</h4>
<hr />
<div class="row">
    <div class="col-md-4">
        <form asp-action="Create">
            <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="DisplayName" class="control-label"></label>
                <input asp-for="DisplayName" class="form-control" />
                <span asp-validation-for="DisplayName" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="PublishCount" class="control-label"></label>
                <input asp-for="PublishCount" class="form-control" />
                <span asp-validation-for="PublishCount" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="LotteryCount" class="control-label"></label>
                <input asp-for="LotteryCount" class="form-control" />
                <span asp-validation-for="LotteryCount" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="WechartId" class="control-label"></label>
                <input asp-for="WechartId" class="form-control" />
                <span asp-validation-for="WechartId" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="Status" class="control-label"></label>
                <select asp-for="Status" class="form-control" asp-items="ViewBag.StatusList">
                    <option value="">-- Select Status --</option>
                </select>
                <span asp-validation-for="Status" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="Save" class="btn btn-default" />
            </div>
        </form>
    </div>
</div>
<div>
    <a asp-action="Index">Back to List</a>
</div>
@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
    <script>
    //$(function () {
    //    $('select.selector-multiple').select2();
    //});
    </script>
}
